/* Pengaturan Dasar */
body {
  font-family: "Poppins", sans-serif;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("Alur\ Penerimaan\ Calon\ Anggota\ OSMIB\ -\ Copy.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

/* Animasi Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container Utama dengan Animasi */
.card {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("Alur\ Penerimaan\ Calon\ Anggota\ OSMIB\ -\ Copy.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  width: 850px; /* Ukuran kotak diperbesar */
  min-height: 500px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out; /* Memicu animasi masuk */
}

/* Bagian Kiri (Foto) */
.photo-section {
  flex: 1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("Alur\ Penerimaan\ Calon\ Anggota\ OSMIB\ -\ Copy.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.photo-section img {
  background-color: #ffffff00;
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

/* Efek hover pada foto */
.photo-section img:hover {
  transform: scale(1.03);
}

/* Bagian Kanan (Biodata) */
.info-section {
  flex: 1.6;
  padding: 50px;
  display: flex;
  flex-direction: column;
}

h2 {
  margin-top: 0;
  color: #f8e736;
  font-size: 2rem;
  border-bottom: 3px solid #edc02ca5;
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 25px;
}

.details {
  display: grid;
  gap: 15px;
}

.item {
  border-bottom: 1px solid #ffffff;
  padding-bottom: 8px;
}

.label {
  font-weight: bold;
  color: #19cda0cb;
  font-size: 0.85rem;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}

.value {
  color: whitesmoke;
  font-size: 1.1rem;
}

/* Gaya khusus untuk pandangan OSMIB */
.osmib-view {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("Alur\ Penerimaan\ Calon\ Anggota\ OSMIB\ -\ Copy.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 15px;
  border-radius: 8px;
  border-left: 5px solid #f0e817;
  font-style: italic;
  line-height: 1.5;
  margin-top: 5px;
}
/* --- RESPONSIVE UNTUK CARD BIODATA --- */
@media screen and (max-width: 768px) {
  body {
    padding: 20px; /* Memberi jarak agar card tidak menempel ke pinggir layar HP */
    align-items: flex-start; /* Memudahkan scroll jika konten panjang */
  }

  .card {
    flex-direction: column; /* Foto pindah ke atas, info ke bawah */
    width: 100%; /* Lebar penuh mengikuti layar HP */
    max-width: 400px; /* Batas lebar maksimal di HP agar tidak terlalu molor */
    min-height: auto;
  }

  .photo-section {
    padding: 20px;
  }

  .photo-section img {
    max-height: 300px; /* Perkecil foto sedikit di HP */
    width: auto;
  }

  .info-section {
    padding: 25px; /* Kurangi padding agar teks tidak terlalu sempit */
  }

  h2 {
    font-size: 1.5rem; /* Perkecil ukuran judul "Biodata Pengurus" */
    text-align: center;
    display: block;
  }

  .value {
    font-size: 1rem; /* Sesuaikan ukuran teks biodata */
  }
}

/* Container Back Button */
.back-nav {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10000; /* Pastikan di atas navbar */
}

/* Style Tombol Kembali */
.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #f7d64a; /* Warna Emas OSMIB */
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #f7d64a;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: none !important; /* Pastikan NO BLUR */
}

.back-btn:hover {
  background: #f7d64a;
  color: #000;
  transform: translateX(-5px); /* Efek geser dikit ke kiri */
}

.back-btn i {
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-btn:active {
  transform: scale(0.95); /* Efek tombol tertekan saat diklik */
}
/* loading screen start */
/* --- LOADING SCREEN PROGRESS --- */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Hitam pekat */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000; /* Pastikan di atas navbar */
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}

.loader-content {
  text-align: center;
  width: 80%;
  max-width: 300px;
}

.loader-logo {
  width: 80px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  width: 0%; /* Mulai dari 0 */
  height: 100%;
  background: linear-gradient(
    90deg,
    #fbd649,
    #ffa500
  ); /* Kuning ke Orange OSMIB */
  box-shadow: 0 0 15px rgba(251, 214, 73, 0.5);
  transition: width 0.2s ease;
}

#loader-text {
  color: white;
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Class untuk menghilangkan loader */
.loader-hidden {
  opacity: 0;
  visibility: hidden;
}
/* loading screen end */
